//所有的路由配置
import { constantRoutes } from "@/router/index"
export default {
  namespaced: true,
  state() {
    return {
      menuList:[...constantRoutes]
    }
  },
  mutations: {
    //把动态路由部分添加到菜单
    updateMenuList(state, asyncRoutes) {
      
      state.menuList = [...constantRoutes,...asyncRoutes]
    }
  }
}